<template>
    <div class="userProjects-detail">
        <div class="userProjects-menu">
            <span class="menu-font" @click="chooseAcc" >伴奏</span>
            <div class="line"> </div>
            <span class="menu-font" @click="choosePro">工程</span>
            <div class="line"> </div>
            <span class="menu-font" @click="chooseLoop">采样包</span>
            <div class="line"> </div>
        </div>
        <div class="vertical-line"> </div>
        <AccompanyFromCenter v-show="this.acc"></AccompanyFromCenter>
        <ProjectFromCenter v-show="this.pro"></ProjectFromCenter>

    </div>
</template>

<script>
import AccompanyFromCenter from '@/components/AccompanyFromCenter'
import ProjectFromCenter from '@/components/ProjectFromCenter'

export default {
    name: "UserProjects.vue",
    components: {
        AccompanyFromCenter,
        ProjectFromCenter
    },
    data() {
        return {
            acc: true,
            pro: false,
            loop: false,
        }
    },
    methods: {
        chooseAcc() {
            this.acc = true;
            this.pro = false;
            this.loop = false;
        },
        choosePro() {
            this.acc = false;
            this.pro = true;
            this.loop = false;
        },
        chooseLoop() {
            this.acc = false;
            this.pro = false;
            this.loop = true;
        }
    }
}

</script>

<style scoped>
.userProjects-detail {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 1, 0.1);
  /*border: 1px solid #B8B8B8;*/
  display: grid;
  grid-template-columns: 100px 0px 1fr;
}
.userProjects-menu {
    display: grid;
    grid-template-rows: 50px 0px 50px 0px 50px 0px;
    align-items: center;
    justify-items: center;
}
.menu-font {

    font-family: Pingfang;
    font-size: 18px;
    font-weight: 500;
    line-height: 34px;
    letter-spacing: 0em;
    color: #95469F;
}
.line {
    width: 100%;
    height: 0px;
    border-top: 1px solid #eee;

}
.vertical-line {
    width: 0px;
    height: 100%;
    border-right: 1px solid #eee;

}
</style>